package com.iretailer.report.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * @author : Bennie
 **/

@Data
public class WxEnterpriseModel {

    private String gender;
    private String avatar;
    private String source;
    private String uuid;
    private String nickname;
    private String email;
    private String username;
    private Token token;
    private UserInfo rawUserInfo;

    @Data
    public static class Token {
        private String code;
        private String accessToken;
        private int refreshTokenExpireIn;
        private int expireIn;
    }


    @Data
    public static class UserInfo {
        private int errcode;
        private int isleader;
        private String gender;
        private String mobile;
        private String errmsg;
        @JsonProperty("is_leader_in_dept")
        private List<Integer> isLeaderInDept;
        private String telephone;
        private String avatar;
        @JsonProperty("hide_mobile")
        private int hideMobile;
        @JsonProperty("mainDepartment")
        private int main_department;
        private String userid;
        @JsonProperty("english_name")
        private String englishName;
        @JsonProperty("thumb_avatar")
        private String thumbAvatar;
        private int enable;
        private String name;
        @JsonProperty("qr_code")
        private String qrCode;
        private String alias;
        private String position;
        private String email;
        private List<Integer> department;
        private int status;
        private List<Integer> order;
    }

}
